Skip to content

fix: wisp create --dry-run reports wrong count when rootOnly overridden#2813

Merged
maphew merged 1 commit intosteveyegge:mainfrom
harry-miller-trimble:fix/wisp-dry-run-root-only
Mar 26, 2026
Merged

fix: wisp create --dry-run reports wrong count when rootOnly overridden#2813
maphew merged 1 commit intosteveyegge:mainfrom
harry-miller-trimble:fix/wisp-dry-run-root-only

Conversation

@harry-miller-trimble
Copy link
Copy Markdown
Contributor

Summary

Fixes #2725bd wisp create --dry-run now reports the correct issue count when rootOnly is overridden (formula without pour=true).

Problem

The --dry-run early return was executing before the rootOnly override logic, causing dry-run to report all N issues would be created while the actual run only creates 1 (root only).

Changes

  • cmd/bd/wisp.go — Move rootOnly override block above the dryRun check so both paths see the same rootOnly value
  • Update dry-run output to show 1 issue (root only) with a note explaining how many child steps were skipped and how to enable them via pour=true in the formula
  • For pour=true formulas, dry-run still reports all issues as before

Checklist

  • Fixes the reported behavioral mismatch between dry-run and actual run
  • No test changes needed (behavioral fix only)

Fixes steveyegge#2725. The --dry-run early return was executing
before the rootOnly override logic, causing dry-run to report all N
issues would be created while the actual run only creates 1 (root).

- Move rootOnly override block above the dryRun check so both paths
  see the same rootOnly value
- Update dry-run output to show '1 issue (root only)' with a note
  explaining how many child steps were skipped and how to enable them
  via pour=true in the formula
- For pour=true formulas, dry-run still reports all issues as before
@harry-miller-trimble harry-miller-trimble force-pushed the fix/wisp-dry-run-root-only branch from cd99e26 to 93d7cff Compare March 24, 2026 22:13
@maphew
Copy link
Copy Markdown
Collaborator

maphew commented Mar 26, 2026

Thanks @harry-miller-trimble — clean fix, good root cause analysis. Merging

@maphew maphew merged commit 1e7d937 into steveyegge:main Mar 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bd mol wisp: --dry-run shows all children but actual run creates only root (RootOnly override)

2 participants